You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clValue Structure > clValue Methods > clValue.RealPart Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clValue.RealPart Method

Gets real part of complex object value.

Syntax
C#
Visual Basic
public TOpenCLValue RealPart([In] TOpenCLValue Vec);

The method method gets the real part of a complex object Vec and stores the real result in the calling object. FloatPrecision and Complex properties of the calling object are set implicitly to match Vec object. Vec Complex property must be true otherwise an exception is raised.

var a,b: clValue; begin a.Copy(Cplx(2,3)); // = [2+3i] b.RealPart(a); // b = [2] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!